home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / sysdeps / unix / sysv / sysv4 / siginfo.h < prev    next >
C/C++ Source or Header  |  1994-01-26  |  2KB  |  59 lines

  1. /* Definitions of the siginfo structure.
  2.    Copyright (C) 1993, 1994 Free Software Foundation, Inc.
  3.    Contributed by Brendan Kehoe (brendan@zen.org).
  4.  
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public License as
  7. published by the Free Software Foundation; either version 2 of the
  8. License, or (at your option) any later version.
  9.  
  10. The GNU C Library is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13. Library General Public License for more details.
  14.  
  15. You should have received a copy of the GNU Library General Public
  16. License along with the GNU C Library; see the file COPYING.LIB.  If
  17. not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  18. Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef    _SIGINFO_H
  21. #define    _SIGINFO_H    1
  22.  
  23. #ifdef __USE_SVID
  24. /* SVR4 puts a ton of other stuff in this structure.  For now, we'll just
  25.    define the two things we really need out of it, and hope for the best.  */
  26.  
  27. /* These define the different states a child can have on exit.
  28.    We need these to build the status return for things like waitpid.  */
  29. #define EXITED         1
  30. #define KILLED        2
  31. #define CORED        3
  32. #define TRAPPED        4
  33. #define STOPPED        5
  34. #define CONTINUED    6
  35.  
  36. typedef struct __siginfo
  37.   {
  38.     int filler1;
  39.  
  40.     /* Code indicating child's status */
  41.     int __code;
  42.  
  43.     int filler2;
  44.  
  45.     /* The PID of the child.  */
  46.     long __pid;
  47.  
  48.     int filler3;
  49.  
  50.     /* The child's status.  */
  51.     int __status;
  52.  
  53.     int filler4[26];
  54.  
  55.   } __siginfo_t;
  56.  
  57. #endif  /* __USE_SVID */
  58. #endif    /* siginfo.h */
  59.